<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{:isset($info['id'])?'编辑':'新增'}竞价商品</h2>
    </div>
    <form action="{:U('saveGoods')}" method="post" class="form-horizontal">


        <div class="form-item">
            <label class="item-label">选择商品</label>
            <div class="controls">
                <select name="good_id">
                    <volist name="goodList" id="vo">
                        <option value="{$vo.id}" <if condition="$info['good_id'] eq $vo['id']">selected</if>>{$vo.goods_name}</option>
                    </volist>
                </select>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">库存</label>
            <div class="controls">
                <input type="text" class="text input-large" name="store_count" value="{$info.store_count|default=''}">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">起拍数</label>
            <div class="controls">
                <input type="text" class="text input-large" name="start_number" value="{$info.start_number|default=''}">
            </div>
        </div>

         <div class="form-item">
            <label class="item-label">起拍价格</label>
            <div class="controls">
                <input type="text" class="text input-large" name="star_price" value="{$info.star_price|default=''}">
            </div>
        </div>

         <div class="form-item">
            <label class="item-label">最低加价</label>
            <div class="controls">
                <input type="text" class="text input-large" name="mini_pricer" value="{$info.mini_pricer|default=''}">
            </div>
        </div>


        <div class="form-item">
            <input type="hidden" name="id" value="{$info.id|default=''}">
            <input type="hidden" name="bid_id" value="{$info.bid_id|default=I('get.bid_id')}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">

        //导航高亮
        highlight_subnav("{:U('bidList')}");
    </script>
</block>